﻿@model IEnumerable<YouFoodIncBDD.FoodsSubCategory>

<fieldset>
    <table>
        <tr>
            <th>Nom</th>
            <th>Image</th>
        </tr>

    @foreach (var item in Model)
    {
        <tr>
            <td>
                @item.name
            </td>
            <td>
                <img src="~\@item.image_url" alt="@item.name" />
            </td>
            <td>
                @Html.ActionLink("Edit", "EditSubCategory", new { id = item.ID }) |
                @Html.ActionLink("Delete", "DeleteSubCategory", new { id = item.ID })
            </td>
        </tr>
    }
    </table>
</fieldset>
